package com.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.bean.Unit;

@Transactional
public interface UnitService {
	int deleteByPrimaryKey(Integer id);

    int insert(Unit record);

    int insertSelective(Unit record);

    Unit selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Unit record);

    int updateByPrimaryKey(Unit record);
    
    List<Unit> select(Map map);
    
    List<Unit> selectByComplexId(Integer id);
    
    int inserttotal(Map<String,Object> units);

}
